package com.zhike.mobileimsdk.server.utils;

import com.zhike.common.utils.RedisService;

public class RedisIns {

    private static RedisIns instance;

    private RedisService redisService = null;

    public RedisIns() {

    }

    public static RedisIns getInstance() {
        if (instance == null) {
            synchronized (RedisIns.class) {
                if (instance == null) {
                    instance = new RedisIns();
                }
            }
        }
        return instance;
    }

    public void setRedis(RedisService redisService) {
        this.redisService = redisService;
    }

    public RedisService getRedisIns() {
        return this.redisService;
    }
}
